#pragma once
#ifndef MYTRACKER_
#include "MyTracker.h"
#endif

// CScreenCover dialog

class CScreenCover : public CDialog
{
	DECLARE_DYNAMIC(CScreenCover)

public:
	CScreenCover(CWnd* pParent = NULL);   // standard constructor
	virtual ~CScreenCover();

// Dialog Data
	enum { IDD = IDD_DIALOG_SCREENCOVER };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);

private:

	CDC m_dcMem;
	CDC m_dcMem2;
	CDC m_dcMem3;
	CSize m_ScreenSize;
	CBitmap m_bmpScreen;
	CBitmap m_bmpScreen2;
	CBitmap m_bmpScreen3;
	CBitmap* m_oldBmp;
	CBitmap* m_oldBmp2;
	CBitmap* m_oldBmp3;
	CRect m_ScreenArea;
	CRect m_SelectArea;
	BOOL  m_bSelectStart;
	BOOL  m_bMoveStart;
	CPoint m_MoveStartPoint;
	CPoint m_MoveEndPoint;
	int	  m_nRectCount;
	HCURSOR m_PenCursor;
	HCURSOR m_CrossMoveCursor;
	CPoint m_CurCursorPosition;

	CMyTracker m_RectTracker;

public:
	void DrawInfo(void);
public:
	void PaintWindow();
	void DrawLittleRect(Graphics* g,Pen* pen,PointF* point,int width);
	afx_msg void OnPaint();
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
	afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
	virtual LRESULT DefWindowProc(UINT message, WPARAM wParam, LPARAM lParam);
};
